<!--{subtemplate common/header}-->
<!--[name]{lang Article view templates}[/name]-->

<script type="text/javascript" src="{$_G['siteurl']}static/js/portal.js?{VERHASH}"></script>
<script type="text/javascript">var aimgcount = new Array();</script>

<!-- main START -->
<div id="main">
	<div id="pt" class="bm">
		<div class="z">
			<a href="./" class="nvhm" title="{lang Homepage}">$_G[setting][sitename]</a> <em>&rsaquo;</em>
			<!--{loop $cat[ups] $value}-->
				<a href="{echo getportalcategoryurl($value[catid])}">$value[catname]</a><em>&rsaquo;</em>
			<!--{/loop}-->
			<a href="{echo getportalcategoryurl($cat[catid])}">$cat[catname]</a> <em>&rsaquo;</em>
			{lang View content}
		</div>
	</div>
	<!--{ad/text/wp a_t}-->
	<div class="post" id="post-323">
		<h2>$article[title] <!--{if $article['status'] == 1}-->({lang Pending})<!--{elseif $article['status'] == 2}-->({lang Ignored})<!--{/if}--></h2>
		<div class="info">
			<span class="date">$article[dateline]</span>
			<!--{if $article[author]}-->
			<span class="author"><a href="index.php?option=member&task=profile&uid=$article[uid]" title="由 $article[author] 发布" rel="author">$article[author]</a></span>
			<!--{/if}-->
			<!--{if $_G['group']['allowmanagearticle'] || ($_G['group']['allowarticle'] && $article['uid'] == $_G['uid'] && (empty($_G['group']['allowarticlemod']) || $_G['group']['allowarticlemod'] && $article['status'] == 1)) || $categoryperm[$value['catid']]['allowmanage']}-->
			<span class="editpost"><a class="post-edit-link" href="index.php?option=portalcp&task=article&op=edit&aid=$article[aid]&page=$_GET[page]">{lang Edit}</a></span>
			<span class="editpost">
			<!--{if $article[status]>0 && ($_G['group']['allowmanagearticle'] || $categoryperm[$value['catid']]['allowmanage'])}-->
				<a href="index.php?option=portalcp&task=article&op=verify&aid=$article[aid]" id="article_verify_$article[aid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang Audit}</a>
			<!--{else}-->
				<a href="index.php?option=portalcp&task=article&op=delete&aid=$article[aid]" id="article_delete_$article[aid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang Delete}</a>
			<!--{/if}-->
			</span>
			<!--{/if}-->
			<span class="comments"><a href="index.php?task=view&aid=$article[aid]:{$article[shorttitle]}#comments">{lang Comment}</a>(<!--{if $article[commentnum] > 0}-->$article[commentnum]<!--{else}-->0<!--{/if}-->)</span>
			<!--{if $article[from]}--><span class="pipe">{lang From}: <!--{if $article[fromurl]}--><a href="$article[fromurl]" target="_blank">$article[from]</a><!--{else}-->$article[from]<!--{/if}--></span><!--{/if}-->
			<span>{lang Views}: <!--{if $article[viewnum] > 0}-->$article[viewnum]<!--{else}-->0<!--{/if}--></span>
			<div class="fixed"></div>
		</div>
		<div class="content">
			<!--{if $article[summary]}--><strong>{lang Summary}</strong>: $article[summary]<!--{/if}-->
			<!--{ad/article/a_af/1}-->
			$content[content]
			<!--{if !empty($aimgs[$content[pid]])}-->
				<script type="text/javascript" reload="1">aimgcount[{$content[pid]}] = [<!--{echo implode(',', $aimgs[$content[pid]]);}-->];attachimgshow($content[pid]);</script>
			<!--{/if}-->
			<!--{if $multi}--><div class="cl">$multi</div><!--{/if}-->
			<div id="click_div">
				<!--{template portal/click}-->
			</div>
		</div>
		<div class="under">
			<span class="categories">Categories: </span>
			<span><a href="{echo getportalcategoryurl($cat[catid])}">$cat[catname]</a></span>
			<!--{if $article[tags]}-->
			<span class="tags">Tags: </span>
			<span>
				<!--{loop $article[tags] $v}-->
				<a href="index.php?option=misc&task=tag&tag={$v[tagname]}" rel="tag">{$v[tagname]}</a>
				<!--{/loop}-->
			</span>
			<!--{/if}-->
		</div>
	</div>
	<!--{ad/article/mbm hm/2}--><!--{ad/article/mbm hm/3}-->
	<!--{if $article['related']}-->
	<div id="related_article" class="bm">
		<div class="bm_h cl">
			<h3>{lang Related}</h3>
		</div>
		<div class="bm_c">
			<ul class="xl xl2 cl">
			<!--{loop $article['related'] $value}-->
				<li>&bull; <a href="index.php?task=view&aid=$value[aid]:{$value[shorttitle]}">$value[title]</a></li>
			<!--{/loop}-->
			</ul>
		</div>
	</div>
	<!--{/if}-->

	<!--{if $article['allowcomment']==1}-->
	<div id="comment" class="bm">
		<div class="bm_h cl">
			<!--{if $article[commentnum]>count($commentlist)}--><a href="index.php?task=view&aid=$aid#cform" class="y xi2">{lang Comment}</a><!--{/if}-->
			<h3>{lang Latest comment}</h3>
		</div>
		<div id="commentlist">
			<!-- comments START -->
			<ol id="thecomments">
				<!--{loop $commentlist $comment}-->
				<!--{template common/comment_li}-->
				<!--{/loop}-->
			</ol>
			<!-- comments END -->
			<!--{if $article[commentnum]}--><p id="commentnavi"><a href="$common_url" class="xi2">{lang View all comments}($article[commentnum])</a></p><!--{/if}-->
			<!--{template common/comment_form}-->
		</div>
	</div>
	<!--{/if}-->
	<!-- 文章浏览 -->
</div>
<!-- main END -->

<!--{subtemplate common/sidebar}-->

<!--{subtemplate common/footer}-->
